package com.dong.pojo;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Reader {
    private int readerId;//读者编号
    private String username;//读者卡号
    private String password;//读者密码
    private String name;//读者姓名
    private String sex;//读者性别
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birth;//读者生日
    private String address;//读者地址
    private String telcode;//读者手机号
    private int state;//读者状态
    private String role;//角色
}
